package com.jiandian.dao;

import com.jiandian.entity.Activemember;
import com.jiandian.page.PageInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 网吧用户 Mapper
 *
 * @author houqi Fu
 * @date 2018/12/16
 */
@Mapper
@Component
public interface ActivememberMapper {
    Activemember selectByPrimaryKey(Long id);

    List<Activemember> selectAll(PageInfo pageInfo);

    int selectCount(PageInfo pageInfo);

    List<Activemember> batchQueryByIds(List<Long> ids);

    int updateByPrimaryKey(Activemember record);

    int insert(Activemember record);

    int batchInsert(List<Activemember> list);

    int batchDeleteById(List<Long> ids);

    int deleteByPrimaryKey(Long id);

    Activemember findByMachineNumber(@Param("termId") String machineNumber);
}
